﻿using System;
using System.Net;
using System.Windows;

namespace Fetion.Core
{
    public class EventChannelArges
    {
        public TcpChannel Channel
        {
            get;
            set;
        }
    }
    public class EventSendCompletedArgs : EventChannelArges
    {
        public IMessage Message
        {
            get;
            set;
        }
    }
    public class EventChannelReceiveArgs : EventChannelArges
    {
        public Object Message
        {
            get;
            set;
        }
    }
    public class EventChannelErrorArgs : EventChannelArges
    {
        public Exception Error
        {
            get;
            set;
        }
    }
    public delegate void EventSendCompleted(object sender,EventSendCompletedArgs e);
    public delegate void EventChannelReceive(object sender,EventChannelReceiveArgs e);
    public delegate void EventChannelError(object sender,EventChannelErrorArgs e);
    public delegate void EventChannelConnected(object sender,EventChannelArges e);
    public delegate void EventChannelDisposed(object sender,EventChannelArges e);
}
